package com.three.sevenths.first;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(2)
public class Command2 implements CommandLineRunner {
    private static Logger logger = LoggerFactory.getLogger(Command2.class);

    @Override
    public void run(String... args) throws Exception {
        logger.info("Command2 run:");
        for (String arg : args) {
            logger.info("args:" + arg);
        }
    }
}
